package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用途信息对象 sys_purpose
 * 
 * @author ruoyi
 * @date 2024-11-13
 */
public class SysPurpose extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用途ID */
    private Long purposeId;

    /** 用途名称 */
    @Excel(name = "用途名称")
    private String purposeName;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Long purposeSort;

    /** 状态（0正常 1停产） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停产")
    private String status;

    public void setPurposeId(Long purposeId) 
    {
        this.purposeId = purposeId;
    }

    public Long getPurposeId() 
    {
        return purposeId;
    }
    public void setPurposeName(String purposeName) 
    {
        this.purposeName = purposeName;
    }

    public String getPurposeName() 
    {
        return purposeName;
    }
    public void setPurposeSort(Long purposeSort) 
    {
        this.purposeSort = purposeSort;
    }

    public Long getPurposeSort() 
    {
        return purposeSort;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("purposeId", getPurposeId())
            .append("purposeName", getPurposeName())
            .append("purposeSort", getPurposeSort())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
